<?php

namespace App\Admin\Actions\WithdrawAction;

use App\Supports\Withdraw\Withdrawer;
use Encore\Admin\Actions\BatchAction;
use Illuminate\Database\Eloquent\Collection;

class BatchConfirm extends BatchAction
{
	public $name = '批量审核通过';
	
	public function handle(Collection $collection)
	{
		app(Withdrawer::class)->confirmBatch($collection);
		return $this->response()->error('批量审核功能暂未开通')->refresh();
	}
}
